//
//  ViewController.m
//  11-17hyd
//
//  Created by blue on 15-11-17.
//  Copyright (c) 2015年 HYD. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (retain, nonatomic) IBOutlet UIButton *btn;

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (IBAction)onClick:(id)sender {
    UIAlertView * alert = [[UIAlertView alloc]initWithTitle:@"温馨提示" message:@"您点击了按钮" delegate:nil cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
    
    [alert show];
    UIAlertView * alert1= [[UIAlertView alloc]initWithTitle:@"温馨提示" message:@"您点击了按钮" delegate:nil cancelButtonTitle:@"开关" otherButtonTitles:@"关闭", nil];
    
    [alert1 show];
    

}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)dealloc {
    [_btn release];
    [super dealloc];
}
@end
